#ifndef __FLIGHT__
#define __FLIGHT__
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<time.h>
extern int count;

extern int flag;

extern int len2;

typedef struct passenger
{
   char name[5];
   char flight_num[10];
   int book_type;
}passenger;

extern passenger pas[10];

typedef struct flight
{
    char number[20];
    int id;
    char Departure[10];
    char Destination[10];
    char Departure_Time[10];
    int Price;
    int Max_passenger;

    int has_buy;
    passenger p[10];

    int wait;
    char list_wait[10][10];
}flight;
extern flight FIT[10];
extern int len;
void start(int name);
 void fuction_staff();
void fuction_passenger();
 void staff_fuction_chice();
 void Enter_Flight();
int Find_fight(char* num);
void clear();
void Delet_fight();
void buy_book(char* paname);
int Book_ifm(char *p);
void fund_wait(int num);
void ALL_fight();
int Wait_Passenger(int id,char* waiter);
int ONLY_indext(char* num);
int Change_book(char* p);
int sreach_indext(char *p);
int selfflight(char* p);
int  Refund_Ticke(char *p);
int waitlist_indext(char*p,int num);
int p_index(passenger pp,int num);
int Into_Pas(char* flight,char*name,int n);
#endif